package qldc.pm.tienan.searchcontainer.util.bienbanbangiao;

import com.liferay.portal.kernel.util.OrderByComparator;

public class BienBanBanGiaoComparatorUtil {
	public static OrderByComparator getBienBanBanGiaoOrderByComparator(String orderByCol, String orderByType) {
		boolean orderByAsc = false;

		if(orderByType.equals("asc")) {
			orderByAsc = true;
		}

		OrderByComparator orderByComparator = null;
		if(orderByCol.equals("nguoiLap")) {
			orderByComparator = new BienBanBanGiaoNguoiLapComparator(orderByAsc);
		}else if(orderByCol.equals("nguoiDuocBanGiao")) {
			orderByComparator = new BienBanBanGiaoNguoiDuocBanGiaoComparator(orderByAsc);
		}

		return orderByComparator;
	}
}
